package com.itljm.cxrMarket.service;

import com.itljm.cxrMarket.entity.SysPermission;
import com.itljm.cxrMarket.entity.SysRolePermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itljm.cxrMarket.entity.dto.RolePermissionDTO;

import java.util.List;

public interface SysRolePermissionService extends IService<SysRolePermission> {
    List<SysPermission> selectAllPermission();
    void assignPermissionsToRole(Long roleId, List<Long> permissionIds);
    List<String> getRolePermissions(Long roleId);
    List<RolePermissionDTO> selectPermissionByRoleId(Long roleId);
}
